<?php
/**
 * User: yuesir
 * Date: 2016/4/29
 * Time: 23:25
 */

namespace App\Controller;
use Lib\Controller;
use Lib\Factory;

class Home extends Controller{
    function index()
    {
        $model = Factory::getModel('User');
        $user_id = $model->create(array('name'=>'hehe2', 'mobile'=>'18682480988'));

        return array('user_id' => $user_id, 'name'=>'hehe2');
    }
}